﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web;

namespace MVCTest004.Models
{
    public class Album
    {
        public int Id { get; set; }

        public int GenreId { get; set; }

        public int ArtistId { get; set; }

        //DisplayName指定属性、事件或public void方法不带参数的显示名称
        [DisplayName("标题")]
        public string Title { get; set; }
        
        [DisplayName("价格")]
        public decimal Price { get; set; }

        public string AlbumArtUrl { get; set; }

        public Genre Genre { get; set; }

        public Artist Artist { get; set; }
    }
}